<html>
<body>

<?php
if($_POST['adet']!="" && $_POST['tahta']!="" && $_POST['fiyat']) {
	include_once 'inc/db.php';
	include_once 'inc/core.php';
	$adet = $_POST['adet'];
	$tahta = $_POST['tahta'];
	$fiyat = $_POST['fiyat'];
	insert_alsat($adet, $tahta, $fiyat);
	echo $adet." x ".$tahta." x ".$fiyat;
}
?>


<form action="" method="post">
	<table>
		<tr>
			<td>adet</td>
			<td><INPUT type="text" name="adet"></td>
		</tr>
		<tr>
			<td>tahta</td>
			<td><INPUT type="text" name="tahta"></td>
		</tr>
		<tr>
			<td>fiyat</td>
			<td><INPUT type="text" name="fiyat"></td>
		</tr>
		<tr>
			<td><INPUT type="submit" value="gonder"></td>
			<td><INPUT type="reset" value="sifirla"></td>
		</tr>
	</table>
</form>
</body>
</html>